package com.yami.shop.bean.param;

import com.yami.shop.common.util.PrincipalUtil;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
@Schema(description = "实名认证")
public class UserAuthenticationParm {

    @Schema(description = "ID")
    @NotBlank(message="USER_ID不能为空")
    private String userId;

    @Schema(description = "身份证号")
    @Pattern(regexp= PrincipalUtil.ID_NUMBER,message = "请输入正确的身份证证号")
    private String idNumber;

    @Schema(description = "真实姓名")
    @NotBlank(message="真实姓名不能为空")
    private String realName;

    @Schema(description = "校验登陆注册验证码成功的标识")
    private String checkRegisterSmsFlag;
}
